package o;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public final class wy implements tx<BitmapDrawable>, tp {
    private final Resources ˎ;
    private final tx<Bitmap> ॱ;

    @NonNull
    public /* synthetic */ Object ˋ() {
        return ˏ();
    }

    @Nullable
    public static tx<BitmapDrawable> ॱ(@NonNull Resources resources, @Nullable tx<Bitmap> txVar) {
        if (txVar == null) {
            return null;
        }
        return new wy(resources, txVar);
    }

    private wy(@NonNull Resources resources, @NonNull tx<Bitmap> txVar) {
        this.ˎ = (Resources) aas.ˎ(resources);
        this.ॱ = (tx) aas.ˎ(txVar);
    }

    @NonNull
    public Class<BitmapDrawable> ˎ() {
        return BitmapDrawable.class;
    }

    @NonNull
    public BitmapDrawable ˏ() {
        return new BitmapDrawable(this.ˎ, (Bitmap) this.ॱ.ˋ());
    }

    public int ॱ() {
        return this.ॱ.ॱ();
    }

    public void ॱॱ() {
        this.ॱ.ॱॱ();
    }

    public void ˊ() {
        if (this.ॱ instanceof tp) {
            ((tp) this.ॱ).ˊ();
        }
    }
}
